import $ajax from '../../helper/ajax'
import { baseUrl, MallReqUrl } from '../../helper/constants'

// 获取商品列表数据
export async function getGoodsList(params) {
  return await $ajax.post(`${baseUrl}${MallReqUrl.getGoodsList}`, params)
}
// 获取订单列表数据
export async function getOrderList(params) {
  return await $ajax.post(`${baseUrl}${MallReqUrl.getOrderList}`, params)
}
// 获取记录列表数据
export async function getRecordList(params) {
  return await $ajax.post(`${baseUrl}${MallReqUrl.getRecordList}`, params)
}
// 获取商品详情
export async function getGoodsDetail(params) {
  return await $ajax.post(`${baseUrl}${MallReqUrl.getGoodsDetail}`, params)
}
// 创建淘礼金
export async function createTaobaoGift(params) {
  return await $ajax.post(`${baseUrl}${MallReqUrl.createTaobaoGift}`, params)
}